﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000CED RID: 3309
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PJNPLPEBKHP : IMessage<PJNPLPEBKHP>, IMessage, IEquatable<PJNPLPEBKHP>, IDeepCloneable<PJNPLPEBKHP>, IBufferMessage
	{
		// Token: 0x170029AE RID: 10670
		// (get) Token: 0x060093E8 RID: 37864 RVA: 0x00188F08 File Offset: 0x00187108
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PJNPLPEBKHP> Parser
		{
			get
			{
				return PJNPLPEBKHP._parser;
			}
		}

		// Token: 0x170029AF RID: 10671
		// (get) Token: 0x060093E9 RID: 37865 RVA: 0x00188F0F File Offset: 0x0018710F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PJNPLPEBKHPReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170029B0 RID: 10672
		// (get) Token: 0x060093EA RID: 37866 RVA: 0x00188F21 File Offset: 0x00187121
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PJNPLPEBKHP.Descriptor;
			}
		}

		// Token: 0x060093EB RID: 37867 RVA: 0x00188F28 File Offset: 0x00187128
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PJNPLPEBKHP()
		{
		}

		// Token: 0x060093EC RID: 37868 RVA: 0x00188F30 File Offset: 0x00187130
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PJNPLPEBKHP(PJNPLPEBKHP other) : this()
		{
			this.isWin_ = other.isWin_;
			this.battleEventId_ = other.battleEventId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060093ED RID: 37869 RVA: 0x00188F61 File Offset: 0x00187161
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PJNPLPEBKHP Clone()
		{
			return new PJNPLPEBKHP(this);
		}

		// Token: 0x170029B1 RID: 10673
		// (get) Token: 0x060093EE RID: 37870 RVA: 0x00188F69 File Offset: 0x00187169
		// (set) Token: 0x060093EF RID: 37871 RVA: 0x00188F71 File Offset: 0x00187171
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsWin
		{
			get
			{
				return this.isWin_;
			}
			set
			{
				this.isWin_ = value;
			}
		}

		// Token: 0x170029B2 RID: 10674
		// (get) Token: 0x060093F0 RID: 37872 RVA: 0x00188F7A File Offset: 0x0018717A
		// (set) Token: 0x060093F1 RID: 37873 RVA: 0x00188F82 File Offset: 0x00187182
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BattleEventId
		{
			get
			{
				return this.battleEventId_;
			}
			set
			{
				this.battleEventId_ = value;
			}
		}

		// Token: 0x060093F2 RID: 37874 RVA: 0x00188F8B File Offset: 0x0018718B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PJNPLPEBKHP);
		}

		// Token: 0x060093F3 RID: 37875 RVA: 0x00188F99 File Offset: 0x00187199
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PJNPLPEBKHP other)
		{
			return other != null && (other == this || (this.IsWin == other.IsWin && this.BattleEventId == other.BattleEventId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060093F4 RID: 37876 RVA: 0x00188FD8 File Offset: 0x001871D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsWin)
			{
				num ^= this.IsWin.GetHashCode();
			}
			if (this.BattleEventId != 0U)
			{
				num ^= this.BattleEventId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060093F5 RID: 37877 RVA: 0x00189030 File Offset: 0x00187230
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060093F6 RID: 37878 RVA: 0x00189038 File Offset: 0x00187238
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060093F7 RID: 37879 RVA: 0x00189044 File Offset: 0x00187244
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsWin)
			{
				output.WriteRawTag(48);
				output.WriteBool(this.IsWin);
			}
			if (this.BattleEventId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.BattleEventId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060093F8 RID: 37880 RVA: 0x001890A0 File Offset: 0x001872A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsWin)
			{
				num += 2;
			}
			if (this.BattleEventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BattleEventId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060093F9 RID: 37881 RVA: 0x001890EC File Offset: 0x001872EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PJNPLPEBKHP other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsWin)
			{
				this.IsWin = other.IsWin;
			}
			if (other.BattleEventId != 0U)
			{
				this.BattleEventId = other.BattleEventId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060093FA RID: 37882 RVA: 0x0018913C File Offset: 0x0018733C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060093FB RID: 37883 RVA: 0x00189148 File Offset: 0x00187348
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.BattleEventId = input.ReadUInt32();
					}
				}
				else
				{
					this.IsWin = input.ReadBool();
				}
			}
		}

		// Token: 0x0400386F RID: 14447
		private static readonly MessageParser<PJNPLPEBKHP> _parser = new MessageParser<PJNPLPEBKHP>(() => new PJNPLPEBKHP());

		// Token: 0x04003870 RID: 14448
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003871 RID: 14449
		public const int IsWinFieldNumber = 6;

		// Token: 0x04003872 RID: 14450
		private bool isWin_;

		// Token: 0x04003873 RID: 14451
		public const int BattleEventIdFieldNumber = 13;

		// Token: 0x04003874 RID: 14452
		private uint battleEventId_;
	}
}
